package com.kedacom.emptyproject.map.viewmodel

import com.kedacom.lego.fast.view.LegoFastViewModel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob

/** Created by wangwei on 2020/9/18 14:31 */
open class BaseViewModel : LegoFastViewModel() {

    private val viewModelJob = SupervisorJob()
    val uiScope = CoroutineScope(Dispatchers.Main + viewModelJob)

    override fun onCleared() {
        super.onCleared()
        viewModelJob.cancel()
    }


}